/*
 * @version: 1.2.3
 * @LastEditors: 杨慢慢
 * @LastEditTime: 2024-03-29 10:39:51
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart' show ChangeNotifier;

int envIn = 2; //1正式2测试
Map envList = {
  1: {
    'api': 'https://apiv2.yda.cn',
  },
  2: {
    'api': 'http://111.228.34.63:9999',
    // 'api': 'http://10.10.10.240:9999'
  },
};

class Common with ChangeNotifier {
  int mobilePlatform = 2; //2:安卓  3: iOS
  Map env = envList[envIn];

  void revision(value) async {
    env = value;
    notifyListeners();
  }

  void setPlatform(value) {
    mobilePlatform = value;
  }
}
